package io.gitee.zicai.bus.listener;

import com.google.common.eventbus.Subscribe;
import io.gitee.zicai.bus.adaptor.IBusSendAdaptor;
import io.gitee.zicai.bus.bus.ISendBus;
import io.gitee.zicai.bus.core.IBusSender;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * GuavaBusSendListener
 *
 * @author zicai
 * @since 2021-01-22
 */
public class GuavaBusSendListener<S extends IBusSender, SB extends ISendBus<S, ST>, ST> extends BaseBusSendListener<S, SB, ST> {

    @Autowired
    private IBusSendAdaptor<S, SB, ST> cmdSendAdaptor;

    @SuppressWarnings("UnstableApiUsage")
    @Subscribe
    public void cmdSendHandler(SB bus) {
        super.cmdSendHandler(cmdSendAdaptor, bus);
    }
}
